import request from "@/utils/request";

// 查询护士列表
export function listNurse(query) {
  return request({
    url: "/zp/nurse/list",
    method: "get",
    params: query,
  });
}

//验证护士情况
export function getNurseVerify(query) {
  return request({
    url: "/zp/nurse/verify",
    method: "get",
    params: query,
  });
}

// 查询护士详细
export function getNurse(id) {
  return request({
    url: "/zp/nurse/" + id,
    method: "get",
  });
}

// 新增护士
export function addNurse(data) {
  return request({
    url: "/zp/nurse",
    method: "post",
    data: data,
  });
}

// 修改护士
export function updateNurse(data) {
  return request({
    url: "/medical/nurse",
    method: "put",
    data: data,
  });
}

// 删除护士
export function delNurse(id) {
  return request({
    url: "/medical/nurse/" + id,
    method: "delete",
  });
}
